﻿/// <reference path="../classes.js" />
/// <reference path="../../../Scripts/knockout.js" />
/// <reference path="../../../Scripts/jquery-1.7.1-vsdoc.js" />
/// <reference path="../../../Scripts/jquery-1.7.1.js" />
/// <reference path="../../../Scripts/jquery-1.7.1.min.js" />
/// <reference path="../../../Scripts/knockout.debug.js" />



function StockViewModel()
{	
	this.STOCK_LIST = ko.observableArray(
	[
		{value: 0, name: "Tesco",		EPIC: "TSCO"},
		{value: 1, name: "Thorntons",	EPIC: "THT"},
		{value: 2, name: "Next",		EPIC: "NXT"},
		{value: 3, name: "Argos",		EPIC: "ARG"},
		{value: 4, name: "Marks&Sp",	EPIC: "MKS"},
		{value: 5, name: "Carters",		EPIC: "CRI"},
	];   //TODO: extract stocklist from db ??
	
	ko.applyBindings(new StockViewModel());
}